第二回実技検定 E - 順列
提出
code: python
import copy
n = int(input())
a = list(map(int, input().split()))
# xをAxで変更、x=iにさえなればいい
for i in range(n):
a_copy = copy.copy(a)
ans = 0
ans += 1
print(ans)
解答
code: python
n = int(input())
a = list(map(int, input().split()))
result = []
for i in range(n):
x = i
j = 1
while x != i:
j += 1
result.append(j)
print(*result)
メモ